import { axios } from "@/utils/request";

const api = {
    pageList: "/expenses/account/pageList",             //分页查询账户(系统)
    getByCompany: "/expenses/account/getByCompany",     //获取当前租户账户信息
    addDeposit: "/expenses/account/addDeposit",         //缴纳保证金
};


/**
 * 分页查询账户(系统)
 */
export function pageList(data) {
    return axios({
      url: api.pageList,
      method: "post",
      data: data
    });
}

/**
 * 获取当前租户账户信息
 */
 export function getByCompany(data) {
    return axios({
      url: api.getByCompany,
      method: "get",
      params: data
    });
}


/**
 * 缴纳保证金
 */
 export function addDeposit(data) {
    return axios({
      url: api.addDeposit,
      method: "post",
      data: data
    });
}

